package com.jtny.nytb.config.datafactor.dto;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author 智慧能源中心 - 伍天宇
 * @package com.jtny.nytb.config.datafactor.dto
 * @fileName DataParamCoreDTO.java
 * @createTime 2023年11月15日 20:49
 * @Copyright© 2023 jtny
 * 江投能源技术研究院 版权所有
 */
@Data
@ApiModel
@AllArgsConstructor
@NoArgsConstructor
public class DataParamCoreDTO implements Serializable {

    private Long dataParamId;

    private String dataParamCode;

    private Long equipmentId;

    private String equipmentCode;

    private String reportIdentifier;

    /**
     * 是否配电监测展示
     */
    private Boolean powerCheckDisplay;

    public DataParamCoreDTO(Long equipmentId, String equipmentCode) {
        this.equipmentId = equipmentId;
        this.equipmentCode = equipmentCode;
    }

    public DataParamCoreDTO(Long dataParamId, String dataParamCode, String reportIdentifier, Boolean powerCheckDisplay) {
        this.dataParamId = dataParamId;
        this.dataParamCode = dataParamCode;

        this.reportIdentifier = reportIdentifier;
        this.powerCheckDisplay = powerCheckDisplay;
    }

    public DataParamCoreDTO(String dataParamCode, Long equipmentId) {
        this.dataParamCode = dataParamCode;
        this.equipmentId = equipmentId;
    }
}
